package com.zjj.userservice.api;

import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;



/**
 * @author: zhaojj
 * @create: 2019-07-12 13:46
 **/
@RestController
public class TestApi {
    private static Logger logger = LoggerFactory.getLogger(TestApi.class);
    @ApiOperation(value = "测试接口")
    @RequestMapping(value = "/testApi",method = RequestMethod.GET)
    public String testApi(String name){
        logger.info("testApi...");
        return "test-success"+name;
    }
}
